/* 
 * File:   shopcontantstest.cpp
 * Author: dolphinigle
 *
 * Created on March 11, 2011, 2:59 PM
 */

#include <stdlib.h>
#include "gtest/gtest.h"
#include "gtesthelper.hpp"
#include "shopconstants.hpp"

TEST(ShopConstantsTest, ConsistentFieldSize) {
  EXPECT_TRUE(ShopConstants::getRowCount() == (int)ShopConstants::getMap().size());
  EXPECT_TRUE(ShopConstants::getRowCount() > 0);
  EXPECT_TRUE(ShopConstants::getColumnCount() > 0);
  for (int i = 0; i < ShopConstants::getRowCount(); ++i) {
    EXPECT_EQ(ShopConstants::getColumnCount(), (int)ShopConstants::getMap()[i].size());
  }
  GTestHelper::expectStrictlyBetween(ShopConstants::getTeleportXFromField(),
          0, ShopConstants::getColumnCount());
  GTestHelper::expectStrictlyBetween(ShopConstants::getTeleportYFromField(),
          0, ShopConstants::getRowCount());
}

